import request from '@/utils/request'

//技师端
// 查询首页订单
export function getOrderData(data) {
	return request({
		url: '/system/order/item/technician/list',
		method: 'get',
		params: data
	})
}

// 查询订单详情
export function getOrderDetail(id) {
	return request({
		url: '/system/order/item/app/' + id,
		method: 'get',
	})
}

// 查询评价详情
export function getCommentDetail(id) {
	return request({
		url: '/system/technician/evaluate/orderItemId/' + id,
		method: 'get',
	})
}

// 上钟
export function upClock(data) {
	return request({
		url: '/system/order/item',
		method: 'put',
		data
	})
}

//管理端
// 查询首页订单
export function getData(data) {
	return request({
		url: '/system/order/list',
		method: 'get',
		params: data
	})
}
//退单
export function chargebackMoneyPC(data) {
	return request({
		url: '/system/order/chargebackMoneyPC',
		method: 'put',
		data
	})
}
//评价
export function technicianEvaluate(id) {
	return request({
		url: '/system/technician/evaluate/' + id,
		method: 'get',
	})
}